//
//  Difen.h
//  LINNER
//
//  Created by wei wang on 2017/3/30.
//  Copyright © 2017年 weiwang. All rights reserved.
//

#ifndef Difen_h
#define Difen_h

#import "AppDelegate.h"
#import "BaseViewController.h"
#import "UINavigationBar+Addition.h"
#import "UIColor+HEX.h"
#import <ASSDK/ASSDK.h>
#import "SVProgressHUD.h"
#import <ASSDK/DeviceToConnect.h>
#import <AVFoundation/AVFoundation.h>
#import "DateTools.h"
#import "NSDate+DateTools.h"
#import "DTMultiLanguage.h"
#import "Masonry.h"
#import "UIButton+ImageTitleSpacing.h"

#define SAVE_OBJECT(object,key) {[[NSUserDefaults standardUserDefaults] setObject:object forKey:key] ; [[NSUserDefaults standardUserDefaults]synchronize];}
#define SAVE_BOOL(value,key) {[[NSUserDefaults standardUserDefaults] setBool:value forKey:key] ; [[NSUserDefaults standardUserDefaults]synchronize];}
#define EXRACT_OBJECT(key)        [[NSUserDefaults standardUserDefaults] objectForKey:key]
#define EXRACT_BOOL(key) [[NSUserDefaults standardUserDefaults]boolForKey:key]
#define REMOVE_OBJECT(key)   [[NSUserDefaults standardUserDefaults]removeObjectForKey:key]
#define px1920Height(px)     (((px)/1920.f) * SCREEN_HEIGHT)
#define px1080Width(px)     (((px)/1080.f) * SCREEN_WIDTH)
#define SCREEN_WIDTH [UIScreen mainScreen].bounds.size.width
#define SCREEN_HEIGHT [UIScreen mainScreen].bounds.size.height
#pragma mark - ----------------------------------------------------
#define LIGHTINGTOTALPALTTIME @"LIGHTINGTOTALPALTTIME"
#define LIGHTINGTOTALNOWTTIME @"LIGHTINGTOTALNOWTTIME"
#define LIGHTINGTOTALENDTTIME @"LIGHTINGTOTALENDTTIME"

#define THELASTESTVERSION @"THELASTESTVERSION"

#define greenColor [UIColor colorWithRed:28/255.0 green:167/255.0 blue:134/255.0 alpha:1]

#endif /* Difen_h */
